/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.school.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.book.entity.BkBookstore;
import com.thinkgem.jeesite.modules.school.entity.School;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 学校DAO接口
 * @author xb.han
 * @version 2015-11-04
 */
@MyBatisDao
public interface SchoolDao extends CrudDao<School> {
    /**
     * 查询教育局监管学校各项信息
     * @return School
     */
    int findBorrowedBooks();
    int findSvSchoolBooks();
    int findSvSchoolReaders();
    List<BkBookstore> getBooksAmount(@Param("begin") Date begin, @Param("end") Date end, @Param("limit") String limit);
    List<Map> getBooksZongKuoZhang();
    Long findAllBooksCount();

    int findAllBookTypeAmount();
}
